1
namespace CSWinFormObjPersistence
6 /// Required designer variable.
8 private System
.ComponentModel
.IContainer components
= null;
11 /// Clean up any resources being used.
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing
)
16 if (disposing
&& (components
!= null))
20 base.Dispose(disposing
);
23 #region Windows Form Designer generated code
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
29 private void InitializeComponent()
31 this.groupBox1
= new System
.Windows
.Forms
.GroupBox();
32 this.textBox3
= new System
.Windows
.Forms
.TextBox();
33 this.textBox2
= new System
.Windows
.Forms
.TextBox();
34 this.textBox1
= new System
.Windows
.Forms
.TextBox();
35 this.label4
= new System
.Windows
.Forms
.Label();
36 this.label3
= new System
.Windows
.Forms
.Label();
37 this.label2
= new System
.Windows
.Forms
.Label();
38 this.label1
= new System
.Windows
.Forms
.Label();
39 this.groupBox1
.SuspendLayout();
44 this.groupBox1
.Controls
.Add(this.textBox3
);
45 this.groupBox1
.Controls
.Add(this.textBox2
);
46 this.groupBox1
.Controls
.Add(this.textBox1
);
47 this.groupBox1
.Controls
.Add(this.label4
);
48 this.groupBox1
.Controls
.Add(this.label3
);
49 this.groupBox1
.Controls
.Add(this.label2
);
50 this.groupBox1
.Controls
.Add(this.label1
);
51 this.groupBox1
.Font
= new System
.Drawing
.Font("Verdana", 9.75F
, System
.Drawing
.FontStyle
.Regular
, System
.Drawing
.GraphicsUnit
.Point
, ((byte)(0)));
52 this.groupBox1
.Location
= new System
.Drawing
.Point(12, 12);
53 this.groupBox1
.Name
= "groupBox1";
54 this.groupBox1
.Size
= new System
.Drawing
.Size(614, 405);
55 this.groupBox1
.TabIndex
= 10;
56 this.groupBox1
.TabStop
= false;
57 this.groupBox1
.Text
= "Object Persistance";
61 this.textBox3
.Location
= new System
.Drawing
.Point(110, 256);
62 this.textBox3
.Name
= "textBox3";
63 this.textBox3
.Size
= new System
.Drawing
.Size(230, 23);
64 this.textBox3
.TabIndex
= 6;
68 this.textBox2
.Location
= new System
.Drawing
.Point(110, 208);
69 this.textBox2
.Name
= "textBox2";
70 this.textBox2
.Size
= new System
.Drawing
.Size(230, 23);
71 this.textBox2
.TabIndex
= 5;
75 this.textBox1
.Location
= new System
.Drawing
.Point(110, 163);
76 this.textBox1
.Name
= "textBox1";
77 this.textBox1
.Size
= new System
.Drawing
.Size(230, 23);
78 this.textBox1
.TabIndex
= 4;
82 this.label4
.AutoSize
= true;
83 this.label4
.Location
= new System
.Drawing
.Point(38, 256);
84 this.label4
.Name
= "label4";
85 this.label4
.Size
= new System
.Drawing
.Size(66, 16);
86 this.label4
.TabIndex
= 3;
87 this.label4
.Text
= "Address:";
91 this.label3
.AutoSize
= true;
92 this.label3
.Location
= new System
.Drawing
.Point(38, 208);
93 this.label3
.Name
= "label3";
94 this.label3
.Size
= new System
.Drawing
.Size(39, 16);
95 this.label3
.TabIndex
= 2;
96 this.label3
.Text
= "Age:";
100 this.label2
.AutoSize
= true;
101 this.label2
.Location
= new System
.Drawing
.Point(38, 163);
102 this.label2
.Name
= "label2";
103 this.label2
.Size
= new System
.Drawing
.Size(50, 16);
104 this.label2
.TabIndex
= 1;
105 this.label2
.Text
= "Name:";
109 this.label1
.Font
= new System
.Drawing
.Font("Verdana", 9.75F
, System
.Drawing
.FontStyle
.Regular
, System
.Drawing
.GraphicsUnit
.Point
, ((byte)(0)));
110 this.label1
.Location
= new System
.Drawing
.Point(31, 31);
111 this.label1
.Name
= "label1";
112 this.label1
.Size
= new System
.Drawing
.Size(533, 83);
113 this.label1
.TabIndex
= 0;
114 this.label1
.Text
= "This example demonstrates how to persist an object.\r\n\r\nThe values you input in th" +
115 "e following TextBoxes will be restored when you open this form again the next ti" +
120 this.AutoScaleDimensions
= new System
.Drawing
.SizeF(6F
, 13F
);
121 this.AutoScaleMode
= System
.Windows
.Forms
.AutoScaleMode
.Font
;
122 this.ClientSize
= new System
.Drawing
.Size(644, 444);
123 this.Controls
.Add(this.groupBox1
);
124 this.Name
= "MainForm";
125 this.StartPosition
= System
.Windows
.Forms
.FormStartPosition
.CenterScreen
;
126 this.Text
= "CSWinFormObjPersistence";
127 this.Load
+= new System
.EventHandler(this.frmObjPersistence_Load
);
128 this.FormClosing
+= new System
.Windows
.Forms
.FormClosingEventHandler(this.frmObjPersistence_FormClosing
);
129 this.groupBox1
.ResumeLayout(false);
130 this.groupBox1
.PerformLayout();
131 this.ResumeLayout(false);
137 private System
.Windows
.Forms
.GroupBox groupBox1
;
138 private System
.Windows
.Forms
.Label label1
;
139 private System
.Windows
.Forms
.TextBox textBox3
;
140 private System
.Windows
.Forms
.TextBox textBox2
;
141 private System
.Windows
.Forms
.TextBox textBox1
;
142 private System
.Windows
.Forms
.Label label4
;
143 private System
.Windows
.Forms
.Label label3
;
144 private System
.Windows
.Forms
.Label label2
;